package com.xuecheng.order.service;

import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.order.domain.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author HuangYuwu
 * @since 2022-09-16
 */
public interface OrdersService extends IService<Orders> {

    /**
     * 创建订单
     *
     * @param coursePubId
     * @return
     */
    ResponseResult createOrders(Long coursePubId);

    /**
     * 查询支付结果
     * @param orderNo
     * @return
     */
    ResponseResult findPayResult(String orderNo);

    /**
     * 清理超时订单
     */
    void clearOrders();
}
